package com.qf.anno;

import com.qf.anno.advice.DaoAdvice;
import com.qf.anno.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp_Anno {
    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("application-aop-anno.xml");

        UserDao userDao = ioc.getBean(UserDao.class);

        userDao.findAll();
//        userDao.findById(1);
//        userDao.delete(2);
    }
}
